package single.shop.web.controller.goods;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 商品控制器类
 * 
 * @author hysunny2008
 * 
 */
@Controller
public class GoodsController {
	private static final Log LOG = LogFactory.getLog(GoodsController.class);
	
	

	

	/**
	 * 商品详情
	 * 
	 * @param goodsId
	 * @param modelMap
	 * @return
	 */
	@SuppressWarnings("unchecked")
	@RequestMapping(value = "/goodsdetail.do")
	public String goodsDetail(String goodsId, ModelMap modelMap,
			HttpServletRequest request, HttpServletResponse response) {
		//long l = System.currentTimeMillis();
		//long k = System.currentTimeMillis();
		if(StringUtils.isEmpty(goodsId)){
			LOG.warn("进入详细页面失败，goodsId为空");
			return "error";
		}
		return null;

	}
	
	
	

}
